package top.go2do.common.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.go2do.common.module.TagPO;

/**
 * @author xingyuji
 * @date 2025/3/20 15:27
 * @description
 */
public interface TagRepository extends JpaRepository<TagPO, Long>, JpaSpecificationExecutor<TagPO> {

    TagPO findByAppIdAndEntityCodeAndTagName(String appId, String entityCode, String tagName);
    TagPO findByAppIdAndEntityCodeAndTagNameAndCreatedBy(String appId, String entityCode, String tagName, Long createdBy);

}
